package conclusion;

/**
 * @author joker
 * @date 2022/4/24 0024 - 22:37
 * 求质数
 */
public class Test02 {
    public static void main(String[] args) {
        int count=0;
        label:for (int i = 2; i < 100; i++) {
            for (int j = 2; j <= Math.sqrt(i); j++) {
                if (i%j==0)
                    continue label;
            }
//            System.out.println(i);
            count++;
        }
        System.out.println("一共有"+count);
        int a=0;
//        do{
//            System.out.println(++a);;
//        }while (a<0);
        while (a<0){
            System.out.println(a++);
        }
        System.out.println(a);
    }
}
